﻿
namespace Gola.VN.Scb.Web.Dal
{
    public class DaoPackage
    {
        public DaoEvent Event { get; set; }
        public ChannelType Channel { get; set; }

        public object Input { get; set; }
        public object Output { get; set; }
    }

    public enum ChannelType
    {
        Sql,
        Memory
    }

    public enum DaoEvent
    {
        // product
        GetProducts,
        SetProducts,
        InsertProduct,
        UpdateProduct,//Update view count

        // category
        GetCategoriesAsFlat,
        GetCategoriesAsTree,
        SetCategoriesAsFlat,
        SetCategoriesAsTree,

        //provider
        GetProviders,
        SetProviders,

        //System info
        GetSysInfo,
        SetSysInfo,
        UpdateSysInfo,

        //Provider Location
        GetLocations,
        SetLocations,

        //Search
        GetSearchHistories,
        SetSearchHistories,
        UpdateSearchHistory
    }
}
